package com.clouddot.baipai.contract;


import com.clouddot.baipai.http.entity.response.getClassRecordResponse;
import com.clouddot.baipai.http.entity.response.getRecordByIdResponse;

import org.wxy.sdk.base.IBaseModel;
import org.wxy.sdk.base.IBasePresenter;
import org.wxy.sdk.base.IBaseView;

import java.util.ArrayList;

import rx.Observable;

/**
 * Created by wxy on 2018/05/27.
 *
 * @author wxy
 */
public interface IAttendFragmentContract {

    interface IPresenter extends IBasePresenter {
        void getClassAttendRecord(String classId);

        void getStudentAttendRecord(int pageindex, int pagesize);
    }

    interface IModel extends IBaseModel {
        Observable<getRecordByIdResponse> getStudentAttendRecord(String acttype, int pageindex, int pagesize);

        Observable<ArrayList<getClassRecordResponse>> getClassAttendRecord(String acttype, String classId);


    }

    interface IView extends IBaseView {
        void success(int flag, Object object);

        void fail(int flag, String errMsg);
    }
}
